Skip to content

Support configuration for serializer#21

Open
jspngh wants to merge 1 commit intopeanutbother:mainfrom
jspngh:feature/serializer-config
Open

Support configuration for serializer#21
jspngh wants to merge 1 commit intopeanutbother:mainfrom
jspngh:feature/serializer-config

Conversation

@jspngh
Copy link

@jspngh jspngh commented Feb 14, 2026

This PR adds the ability to configure the serialization, with the current option being whether or not to write commented lines for None values.

The existing defaults and API stay unchanged, users can opt-in to using the configuration via the new to_string_with_config function.

This adds a `to_string_with_config` method that allows passing
configuration on how the value should be serialized.

Currently the only config option is whether to write commented lines
for `None` value or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant